package com.spic.business.plan.inspection.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.business.common.core.domain.BasicEntity;
import com.spic.common.core.annotation.Excel;
import lombok.Data;

import java.util.Date;


/**
 * 应急物资检查对象 plan_inspection
 *
 * @author spic
 * @date 2021-10-28
 */
@Data
public class PlanInspection extends BasicEntity
{
    private static final long serialVersionUID = 1L;

    /** 应急物资检查主键id */
    private Long id;


    /** 应急物资检查检查记录主键id */
    private Long inspectionHistoryId;

    /** 检查说明 */
    @Excel(name = "检查说明")
    private String inspectionCertificate;

    /** 检查物资Id*/
    @Excel(name = "检查物资Id")
    private Long materialId;


    /** 物资名称 */
    @Excel(name = "物资名称")
    private String materialName;
    /** 编号 */
    @Excel(name = "编号")
    private String materialCode;

    /** 完成情况 */
    @Excel(name = "完成情况")
    private String performance;

    /** 检查人 */
    @Excel(name = "检查人")
    private String rummager;

    /** 检查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "检查时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionTime;
    @JsonFormat(pattern = "yyyy-MM" ,timezone = "GMT+8")
    @Excel(name = "检查周期", width = 30, dateFormat = "yyyy-MM")
    private Date cycle;
    /** 问题描述 */
    @Excel(name = "问题描述")
    private String problemDescription;

    /** 整改措施 */
    @Excel(name = "整改措施")
    private String measuresCorrections;

    /** 检查策划 */
    @Excel(name = "检查策划")
    private String checkPlanning;

    /** 应补充数量 */
    @Excel(name = "应补充数量")
    private Double quantitySupplemented;

    /** 检查结果 */
    @Excel(name = "检查结果")
    private String inspectionResult;
    /** 是否完备 */
    @Excel(name = "是否完备")
    private String complete;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 是否存在问题 */
    @Excel(name = "是否存在问题")
    private String problem;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Double quantityStock;

    /** 单位 */
    @Excel(name = "单位")
    private String monad;

    /** 历史检查单开始时间 */
    private Date startMonth;

    /** 历史检查单结束时间 */
    private Date endMonth;

    public Long getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    public Long getInspectionHistoryId() {
        return inspectionHistoryId;
    }


    public void setInspectionHistoryId(Long inspectionHistoryId) {
        this.inspectionHistoryId = inspectionHistoryId;
    }

    public Date getStartMonth() {
        return startMonth;
    }

    public void setStartMonth(Date startMonth) {
        this.startMonth = startMonth;
    }

    public Date getEndMonth() {
        return endMonth;
    }

    public void setEndMonth(Date endMonth) {
        this.endMonth = endMonth;
    }

    public Double getQuantityStock() {
        return quantityStock;
    }

    public void setQuantityStock(Double quantityStock) {
        this.quantityStock = quantityStock;
    }

    public String getMonad() {
        return monad;
    }

    public void setMonad(String monad) {
        this.monad = monad;
    }

    public Date getCycle() {
        return cycle;
    }

    public void setCycle(Date cycle) {
        this.cycle = cycle;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInspectionCertificate() {
        return inspectionCertificate;
    }

    public void setInspectionCertificate(String inspectionCertificate) {
        this.inspectionCertificate = inspectionCertificate;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getPerformance() {
        return performance;
    }

    public void setPerformance(String performance) {
        this.performance = performance;
    }

    public String getRummager() {
        return rummager;
    }

    public void setRummager(String rummager) {
        this.rummager = rummager;
    }

    public Date getInspectionTime() {
        return inspectionTime;
    }

    public void setInspectionTime(Date inspectionTime) {
        this.inspectionTime = inspectionTime;
    }

    public String getProblemDescription() {
        return problemDescription;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription;
    }

    public String getMeasuresCorrections() {
        return measuresCorrections;
    }

    public void setMeasuresCorrections(String measuresCorrections) {
        this.measuresCorrections = measuresCorrections;
    }

    public String getCheckPlanning() {
        return checkPlanning;
    }

    public void setCheckPlanning(String checkPlanning) {
        this.checkPlanning = checkPlanning;
    }

    public Double getQuantitySupplemented() {
        return quantitySupplemented;
    }

    public void setQuantitySupplemented(Double quantitySupplemented) {
        this.quantitySupplemented = quantitySupplemented;
    }

    public String getInspectionResult() {
        return inspectionResult;
    }

    public void setInspectionResult(String inspectionResult) {
        this.inspectionResult = inspectionResult;
    }

    public String getComplete() {
        return complete;
    }

    public void setComplete(String complete) {
        this.complete = complete;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    @Override
    public String toString() {
        return "PlanInspection{" +
                "id=" + id +
                ", inspectionCertificate='" + inspectionCertificate + '\'' +
                ", materialName='" + materialName + '\'' +
                ", materialCode='" + materialCode + '\'' +
                ", performance='" + performance + '\'' +
                ", rummager='" + rummager + '\'' +
                ", inspectionTime=" + inspectionTime +
                ", cycle=" + cycle +
                ", problemDescription='" + problemDescription + '\'' +
                ", measuresCorrections='" + measuresCorrections + '\'' +
                ", checkPlanning='" + checkPlanning + '\'' +
                ", quantitySupplemented=" + quantitySupplemented +
                ", inspectionResult='" + inspectionResult + '\'' +
                ", complete='" + complete + '\'' +
                ", note='" + note + '\'' +
                ", problem='" + problem + '\'' +
                ", quantityStock=" + quantityStock +
                ", monad='" + monad + '\'' +
                ", startMonth=" + startMonth +
                ", endMonth=" + endMonth +
                '}';
    }
}
